#!/bin/bash 
read -p "input a User:" NAME
FLAG=`grep "^$NAME:" /etc/passwd | wc -l`
if [ $FLAG -eq 1 ]
then
	echo "$NAME is exits"
else
	echo "$NAME is not exits"
fi
